resource "google_compute_router" "<%= ctx[:primary_resource_id] %>" {
  name                          = "<%= ctx[:vars]['router_name'] %>"
  network                       = google_compute_network.network.name
  encrypted_interconnect_router = true
  bgp {
    asn = 64514
  }
}

resource "google_compute_network" "network" {
  name                    = "<%= ctx[:vars]['network_name'] %>"
  auto_create_subnetworks = false
}
